@include('admin\header')
    <!-- Editor-->
    <link rel="stylesheet" href="{{asset('admin/plugins/bootstrap-wysihtml5/css/bootstrap-wysihtml5.css')}}">
    <!-- Fonts -->
    <!-- <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,900,300italic,400italic,600italic,700italic,900italic' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'> -->
    <!-- Feature detection -->
    <script src="{{asset('admin/js/modernizr-2.6.2.min.js')}}"></script>
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="assets/js/html5shiv.js"></script>
    <script src="assets/js/respond.min.js"></script>
    <![endif]-->
</head>

<body>
    <section id="container">
        @include('admin.nav');
        <!--sidebar start-->
        @include('admin.laside')
        <!--sidebar end-->
        <!--main content start-->
        <section class="main-content-wrapper">
            <section id="main-content">
                <div class="row">
                    <div class="col-md-12">
                        <!--breadcrumbs start -->
                        <ul class="breadcrumb">
                            <li><a href="#">控制台</a>
                            </li>
                            <li>活动文章</li>
                            <li class="active">文章修改</li>
                        </ul>
                        <!--breadcrumbs end -->
                        <h1 class="h1">文章修改</h1>
                    </div>
                </div>

                <!-- <div class="row">
                    <div class="col-md-12">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title">bootstrap wysihtml5</h3>
                                <div class="actions pull-right">
                                    <i class="fa fa-chevron-down"></i>
                                    <i class="fa fa-times"></i>
                                </div>
                            </div>
                            <div class="panel-body">
                                <textarea class="textarea form-control" rows="10" cols="80" placeholder="Enter text ..." style="width: 100%; height: 200px"></textarea>
                            </div>
                        </div>
                    </div> -->
                    <!-- <div class="col-md-12"> -->
                        
                                <!--***************-->
                                
        <form role="form" action='' method='post'  enctype='multipart/form-data'>
            {!!csrf_field()!!}
            <input type="hidden" name='new_id' value="{{$arts->new_id}}">
            <div class="form-group">
                <label class="col-sm-2 control-label" style="margin-left:20px;">
                    <span style='font-size:16px'>文章/活动标题</span></label>
                <div class="col-sm-6">
                <input type="text" class="form-control" name='title' style="margin-left:-30px;" value="{{$arts->title}}">
                </div>
                                       
            </div>
            <!--栏目-->
            <div class="form-group">
                <select class="form-control" style='width:200px;' name='style'value="{{$arts->style}}">
                    <option value="风格">风格</option>
                </select>
            </div>
            <!-- 作者 -->
            <div class="form-group">
                <label class="col-sm-2 control-label" style="margin-left:20px;">
                    <span style='font-size:16px'>文章作者</span></label>
                <div class="col-sm-6">
                <input type="text" class="form-control" value="{{$arts->username}}" name='username' style="margin-left:-30px;width:120px;">
                </div>
                                       
            </div>
            <!--清除浮动-->
            <div id='clr' style="clear:both;"></div>
            

            <!--关键词-->
            <div class="form-group" style="clear:left;">
                <label class="col-sm-1 control-label" style="margin:20px 0px 0px 20px;">
                    <span style='font-size:16px;'>关键词</span></label>
                <div class="col-sm-6">
                <input type="text" class="form-control" value="{{$arts->keywords}}" name='keywords' style="margin:20px 0px 0px 60px;width:150px;">
                </div>
                                       
            </div> 
            
     
            <div class="panel-body" style='clear:both;'>
            <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><span style='font-size:20px'>内容编辑:</span></h3>
                                <!-- <div class="actions pull-right">
                                    <i class="fa fa-chevron-down"></i>
                                    <i class="fa fa-times"></i>
                                </div> -->
            </div>
            <div class="panel-body">
                <textarea name="content" id="editor1" rows="10" cols="80">
                {{$arts->content}}
                </textarea>
            </div>
            <div class="form-group" style='clear:both;padding:0 30px;margin-top:20px;'> 
                <label for="exampleInputFile">文件上传</label>
                <input type="file" name='thumb' id="exampleInputFile">
                                        <!-- <p class="help-block">Example block-level help text here.</p> -->
            </div> 
            <button type="submit" class="btn btn-primary" style='float:right;'>提交</button>
            </div>
                    <!-- </div> -->
                    
        </div>
            <!-- </div> -->
        </form>

          <!--    -->
        <!--main content end-->
        @include('admin\raside')
    </section>
    <!--Global JS-->
    <script src="{{asset('admin/js/jquery-1.10.2.min.js')}}"></script>
    <script src="{{asset('admin/plugins/bootstrap/js/bootstrap.min.js')}}"></script>
    <script src="{{asset('admin/plugins/waypoints/waypoints.min.js')}}"></script>
    <script src="{{asset('admin/js/application.js')}}"></script>
    <!--Page Level JS-->
    <script src="{{asset('admin/plugins/bootstrap-wysihtml5/js/wysihtml5-0.3.0.js')}}"></script>
    <script src="{{asset('admin/plugins/bootstrap-wysihtml5/js/bootstrap3-wysihtml5.js')}}"></script>
    <script src="{{asset('admin/plugins/ckeditor/ckeditor.js')}}"></script>
    <script>
    $(document).ready(function() {
        $('.textarea').wysihtml5();

        CKEDITOR.replace('editor1');
    });
    </script>

</body>

</html>
